#!/usr/bin/python
# -*- coding: utf-8 -*-

from util.app_global import version

__author__ = 'xiwei'

user_info = {
    'domain': '',
    'username': '',
    'password': '',
    'task_name': 'bdp_sync'
}
db = {
    'uid': '',
    'database': '',
    'modify': True,
    'server': '',
    'ds_name': '',
    'pwd': '',
    'type': '',
    'port': '',
    'db_increase_type': '',
    'db_binlog': {
        'instance': '',
        'secret': '',
        'id': '',
        'mysqlbinlog': '',
        'path': ''
    },
    'append_table': []
}
append_table = {
    'index_field': {
        'field': ''
    },
    'where': '',
    'name': '',
    'fetch_rows': "10000",
    'text_date': {
        'field': '',
        'value': '',
        'format': ''
    },
    'select': []
}

config = {
    'user_info': {},
    'db': [],
    'app': {
        'version': int(version.replace('.', '')),
    }
}
